﻿	
create proc sp_xoagiatp
@maTP int
as
declare @dem as int
select @dem=count(*) from DanhMucGiaTP where MaTP=@maTP
if(@dem>0)
	begin
	delete DanhMucGiaTP where MaTP=@maTP
	select ErrCode=1
	end
else	
	begin
	select ErrCode=0
	end